<!DOCTYPE html>
<html lang="en"	xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <title>在线考试系统学生注册</title>
    <!-- Bootstrap core CSS -->
    <link href="#" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.min.css}" rel="stylesheet">
</head>
<body>
<div class="container"><br>
    <!--main panel-->
    <h3 class="text-center font-weight-bold" > 学生注册页面</h3><br>
    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-9">
            <div class="main-panel">
                <div class="content">
                    <div class="container">

                        <form th:action="@{/prexam/AddStudent}" method="post">
                            <div class="col-md-8">
                                <div class="card">
                                    <div class="card-body">
                                        <div class="form-group">
                                            <label for="name">姓名</label>
                                            <input type="text" class="form-control" required name="studentName" id="name" placeholder="shuzhao">
                                        </div>
                                        <div class="form-group">
                                            <label for="name">账号</label>
                                            <input type="text" class="form-control" required name="studentAccount" id="account" placeholder="数字字母">
                                            <small id="accounthelp" class="form-text text-muted"></small>
                                        </div>
                                        <div class="form-group">
                                            <label>性别</label><br>
                                            <label class="form-radio-label">
                                                <input class="form-radio-input" type="radio" name="studentGender" value="1">
                                                <span class="form-radio-sign">男</span>
                                            </label>
                                            <label class="form-radio-label ml-3">
                                                <input class="form-radio-input" type="radio" name="studentGender" value="0">
                                                <span class="form-radio-sign">女</span>
                                            </label>
                                        </div>
                                        <div class="form-group">
                                            <label for="email">邮件</label>
                                            <input type="email" class="form-control" required id="email" name="studentEmail" placeholder="Enter Email">
                                            <small id="emailHelp" class="form-text text-muted"></small>
                                        </div>
                                        <div class="form-group">
                                            <label for="password">密码</label>
                                            <input type="password" class="form-control" required id="password" name="studentPwd" placeholder="Password">
                                        </div>
                                        <div class="form-group">
                                            <!--由数据库中查询出来-->
                                            <label>班级</label>
                                            <select class="form-control" name="classeId">
                                                <option th:each="cla:${allClasees}" th:text="${cla.classeName}" th:value="${cla.classeId}"></option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="card-action">
                                        <button class="btn btn-primary " type="submit" style="
                                            border-left-width: 1px;
                                            margin-left: 100px;
                                             margin-bottom: 12px;
                                        ">Submit</button>
                                        <button class="btn btn-primary " style="
                                            margin-left: 30px;
                                            margin-right: 30px;
                                             margin-bottom: 12px;
                                            " type="reset">Cancel</button>
                                        <a class="btn btn-primary" style="
                                            border-left-width: 1px;
                                            width: 74px;
                                             margin-bottom: 12px;
                                            "th:href="@{/foreLogin}">返回</a>
                                    </div>

                                </div>
                            </div>
                        </form>
                    </div>
                </div>
        </div>
        <div class="col-md-2"></div>
    </div>
</div>
</div>
</body>
</html>
